package com.baosight.sczx.zm.ct.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.soa.SoaManager;
import com.baosight.iplat4j.core.threadlocal.UserSession;
import com.baosight.iplat4j.ep.ServiceEPBase;
import com.baosight.sczx.common.zm.basetools.StaticTools;
import com.baosight.sczx.common.zm.basetools.TablePk;
import com.baosight.sczx.common.zm.cInterface.Department;
import com.baosight.sczx.common.zm.cInterface.ce.Equipment;
import com.baosight.sczx.common.zm.cInterface.cs.Engineering;
import com.baosight.sczx.zm.ce.domain.ZMCEEquipmentDynamic;
import com.baosight.sczx.zm.ct.domain.ZMCTSms;
import com.baosight.sczx.zm.ct.domain.ZMCTSmsBoxsended;

/**
 * <p>Title: ServiceZMCT31.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author  李红星
 * @version 1.0
 * <pre>Histroy:
 *          2012-6-14 13:33:33  李红星  Create
 *</pre>
 */
public class ServiceZMCT31 extends ServiceEPBase {
	
	/**
	 * 初始化方法
	 * <p>Function: initLoad</p>
	 * <p>Description: </p>
	 * <p>return value: ServiceZMCT31</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *   2012-6-14 13:34:13  李红星
	 * </p>
	 *
	 */
	public EiInfo initLoad(EiInfo inInfo) {
		EiInfo outInfo = null;
		inInfo.addBlock(EiConstant.resultBlock).set("showCount", "true");//如果不加这个，翻页的统计和显示是错误的
		outInfo = query(inInfo);
		return outInfo;
	}

	/**
	 * 回执查询
	 * <p>Function: query</p>
	 * <p>Description: </p>
	 * <p>return value: ServiceZMCT31</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2012-6-14 13:34:48  李红星
	 * </p>
	 *
	 */
	@Override
	public EiInfo query(EiInfo inInfo) {
//		String fdPreparerDepId = UserSession.getInSessionProperty("orgCode") == null ? "" : UserSession.getInSessionProperty("orgCode").toString();
//		StaticTools.setQueryParameters(inInfo, "fdPreparerDepId", fdPreparerDepId, true);//添加查询条件 操作用户
		EiInfo outInfo = super.query(inInfo, "ZMCTSmsBoxsended.query", new ZMCTSmsBoxsended());				
		return outInfo;
	}
}
